package com.lapula.crazyface.entity;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.PointF;

import com.lapula.crazyface.R;
import com.lapula.crazyface.util.ImageUtils;

public class AngryEmotion extends Emotion {

	private final String expressionFolder = "expression/angry";
	
	public AngryEmotion(Context context) {
		super(context);
	}

	@Override
	protected void init() {
		List<Bitmap> leftEyes = new ArrayList<Bitmap>();
		leftEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "angry_left_01.png"));
		leftEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "angry_left_02.png"));
		leftEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "angry_left_03.png"));
		leftEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "angry_left_04.png"));
		OffsetRatio leftOffset = new OffsetRatio(-1.0f, -1.0f);
		ExpressionItem leftEye = new ExpressionItem(leftEyes, leftOffset, BASED_POINT_LEFT_EYE);
		expressioItems.add(leftEye);

		List<Bitmap> rightEyes = new ArrayList<Bitmap>();
		rightEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "angry_right_01.png"));
		rightEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "angry_right_02.png"));
		rightEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "angry_right_03.png"));
		rightEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "angry_right_04.png"));
		OffsetRatio rightOffset = new OffsetRatio(0, -1.0f);
		ExpressionItem rightEye = new ExpressionItem(rightEyes, rightOffset, BASED_POINT_RIGHT_EYE);
		expressioItems.add(rightEye);
	}
}
